#include <myheader_c_plus.h>
using std::endl;
using std::cout;
using std::string;

int main(int argc, char *argv[])
{
    string str1("hello world");
    string str2("world",3);
    cout << str1 <<" " << str2 << endl;
    string str3(5,'a');
    cout << str3 << endl;
    string str4(str1.cbegin(),str1.cend());
    cout << str4 << endl;
    string str5 = str3 + str1;
    cout << str5 << endl;
    for(auto it = str1.cbegin();it != str1.cend(); it++){
        cout << *it << endl;
    }

    for(auto & el : str1){
        cout << el << endl;
    }
    
    str1.append(5,'a');
    cout << str1 << endl;
    str1.append("hello java");
    cout << str1 << endl;


    return 0;
}

